//
//  CurrentWeatherData.m
//  BiuWeather
//
//  Created by 楼楚 on 16/3/12.
//  Copyright © 2016年 Chu Lou. All rights reserved.
//

#import "CurrentWeatherData.h"

@implementation CurrentWeatherData

- (void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"wind"]) {
        value = [[Wind alloc]initWithDictionary:value];
    }
    
    [super setValue:value forKey:key];
}
- (instancetype)initWithDictionary:(NSDictionary *)dictionary{
    if ([dictionary isKindOfClass:[NSDictionary class]]) {
        self = [super init];
        if (self) {
            [self setValuesForKeysWithDictionary:dictionary];
        }
        return self;
    } else {
        return nil;
    }

}


@end
